package com.hoshiicloud.gateway.config;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * @author MarkerCCC
 * @date 2019-09-20 - 09:54
 */
@Data
@Configuration
@RefreshScope
@ConditionalOnExpression("!'${get-url-modules}'.isEmpty()")
@ConfigurationProperties(prefix = "get-url-modules")
public class UrlModulesConfig {

    private List<String> moduleName = new ArrayList<>();


}
